package be.g00glen00b.controller;

import java.util.GregorianCalendar;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Controller;

import be.g00glen00b.domain.User;


@Controller("restController")
@Path(RESTController.URL)
public class RESTController {

	public static final String URL = "/";

	@GET
	@Produces({ MediaType.APPLICATION_JSON })
	@Path("getUser")
	public User getUser() {
		return new User("Gates", "Bill", new GregorianCalendar(1955, 9, 28),
				true);
	}
}
